package net.a6polo.a6poloweibo;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;

public class SelectPictureDialog extends DialogFragment{
	 @Override
     public Dialog onCreateDialog(Bundle savedInstanceState) {

         String[] items = {getString(R.string.take_camera), getString(R.string.select_pic)};

         AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
                 .setTitle(getString(R.string.select))
                 .setItems(items, (DialogInterface.OnClickListener)getActivity());
         return builder.create();
     }
}
